﻿<Page
    x:Class="NaverOpenApiLibraryPortableForWindowsRT.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:NaverOpenApiLibraryPortableForWindowsRT"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Loaded="Page_Loaded">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <TextBlock x:Name="Title" HorizontalAlignment="Left" Height="66" Margin="10,10,0,0" TextWrapping="Wrap" Text="Naver Open API Lib Sample" VerticalAlignment="Top" Width="923" FontFamily="Global User Interface" FontSize="50"/>
        <ListView x:Name="SearchResultListView" HorizontalAlignment="Left" Margin="0,125,0,0" VerticalAlignment="Stretch" Width="600" SelectionChanged="SearchResultListView_SelectionChanged" ItemsSource="{Binding BlogItems}" >
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapGrid Orientation="Horizontal" MaximumRowsOrColumns="2"/>
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Grid Width="220" Height="50">
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="{Binding Title}" FontSize="20" />
                            <TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        
        <ListView x:Name="NewsSearchResultListView" HorizontalAlignment="Left" Margin="600,125,0,0" VerticalAlignment="Stretch" Width="550" SelectionChanged="NewsSearchResultListView_SelectionChanged" >
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapGrid Orientation="Horizontal" MaximumRowsOrColumns="2"/>
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Grid Width="240" Height="50">
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="{Binding Title}" FontSize="20" />
                            <TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        <TextBlock x:Name="Title_Copy" HorizontalAlignment="Left" Height="30" Margin="10,67,0,0" TextWrapping="Wrap" Text="Windows 8 뉴스, 블로그 조회 예제" VerticalAlignment="Top" Width="923" FontFamily="Global User Interface" FontSize="30"/>


    </Grid>
</Page>
